<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ut="http://java.sun.com/jsf/composite/components/tags">
<html xmlns="http://www.w3.org/1999/xhtml">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Система аукционов</title>
    </h:head>
    <h:body>
    <f:view>
        <h:form>
            <h:outputLabel for="login" value="Имя пользователя" />
            <p:inputText id="login" required="true" label="Логин" value="#{mainPage.userName}"/>

            <br/>
            <h:outputLabel for="pass" value="Пароль" />
            <p:inputText id="pass" required="true" label="Пароль" value="#{mainPage.password}"/>
            <br/>
            <h:commandButton action="#{mainPage.createUser}" value="Создать пользователя и войти"/>
            <h:commandButton action="#{mainPage.loginOn}" value="Войти"/>
            <br/>
            <h:outputLabel value="#{mainPage.usersCount}"/>
            <br/>
            <h:outputLabel value="#{mainPage.message}"/>
            <br/>
            
        </h:form>
    </f:view>
</h:body>
</html>
</ui:composition>
